﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace JuCheap.Core.Models.ViewModels
{
    public class PaiBanViewModel
    {
        public int Id { get; set; }
        public string Date { get; set; }

        public DateTime DateStart { get; set; }

        public DateTime DateEnd { get; set; }
        [Display(Name = "公司名称")]
        public string Company { get; set; }
        [Display(Name = "公司")]
        public int? CompanyId { get; set; }

        [Display(Name = "员工姓名")]
        //[Required(ErrorMessage = Message.Required)]
        public int? WorkerId { get; set; }

        [Display(Name = "班次")]
        [Required(ErrorMessage = Message.Required)]
        public int BanCiId { get; set; }


        public WorkerViewModel Worker { get; set; }
        public BanCiViewModel BanCi { get; set; }

        //[Display(Name = "班次")
        //public string CompanyId { get; set; }


        public string WorkerName { get; set; }

        public string BanciName { get; set; }


        public string TimePeriods { get; set; }
    }
}
